package com.yiwu.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 
 * @TableName Chat_session
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="Chat_session")
@Data
public class ChatSession extends Model<ChatSession> {
    /**
     * 会话ID
     */
    @TableId
    private String sessionId;

    /**
     * 最后接收的消息
     */
    private String lastMessage;

    /**
     * 最后接收时间毫秒
     */
    private Long lastReceiveTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}